package com.hu.hutool.T;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author CazCen
 * @Date 2021/10/17 22:16
 */
@Slf4j
public class Generic {


    public static <E, K> void returnAdd(E t, E t2) {
        log.info("t:{},t2:{}", t, t2);
    }


    public static <T> boolean emailFormat(String email) {
        boolean tag = true;
        if (!email.matches("[\\w\\.\\-]+@([\\w\\-]+\\.)+[\\w\\-]+")) {
            tag = false;
        }
        return tag;
    }

}
